﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
using CC98.Metro.Data;

namespace CC98.Metro.Pages
{
    public sealed partial class Home : CC98.Metro.Common.LayoutAwarePage
    {
        public Home()
        {
            this.InitializeComponent();
        }

        protected override void LoadState(Object navigationParameter, Dictionary<String, Object> pageState)
        {
            this.DefaultViewModel["top10Items"] = new ThreadDataItem[]
            {
                new ThreadDataItem(){ Index = 1, Name = "十大第一！" },
                new ThreadDataItem(){ Index = 2, Name = "十大第二！" },
                new ThreadDataItem(){ Index = 3, Name = "十大第三！" },
                new ThreadDataItem(){ Index = 4, Name = "十大第四！" },
                new ThreadDataItem(){ Index = 5, Name = "十大第五！" },
                new ThreadDataItem(){ Index = 6, Name = "十大第六！" },
                new ThreadDataItem(){ Index = 7, Name = "十大第七！" },
                new ThreadDataItem(){ Index = 8, Name = "十大第八！" },
                new ThreadDataItem(){ Index = 9, Name = "十大第九！" },
                new ThreadDataItem(){ Index = 10, Name = "十大第十！" }
            };
        }
    }
}
